package xin.javashare.designPattern.creation.abstractFactory;

import xin.javashare.designPattern.creation.abstractFactory.service.Provider;
import xin.javashare.designPattern.creation.abstractFactory.service.Sender;
import xin.javashare.designPattern.creation.abstractFactory.service.serviceImp.ExtMessageSender;

/**
 * 抽象工厂模式
 * 创建多个工厂类实现共同的接口：工厂类3
 * 扩展类对应的工厂类
 */
public class ExtMassageFactory implements Provider {

    @Override
    public Sender produce() {
        return new ExtMessageSender();
    }
}
